swap_arrays Subroutine

public pure subroutine swap_arrays(x, y)

Swaps the contents of two arrays.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(inout), dimension(:) :: x

The first array.

real(kind=real64), intent(inout), dimension(:) :: y

The second array.